package com.yunhe.authority.util;

import com.yunhe.authority.model.CompanyUpload;
import com.yunhe.common.util.StringUtil;

/**
 * @Author: DongWenYu
 * @Date: 2021/2/26 16:57
 */
public class CompanyUploadUtil {

    public static Boolean isEmpty(CompanyUpload companyUpload){
//        if (StringUtil.isEmpty(companyUpload.getName()) && StringUtil.isEmpty(companyUpload.getStationTitle())
//                && StringUtil.isEmpty(companyUpload.getBuildingNumber())&& StringUtil.isEmpty(companyUpload.getArea())
//                && StringUtil.isEmpty(companyUpload.getLeaseTime())&& StringUtil.isEmpty(companyUpload.getLeasePrice())
//                && StringUtil.isEmpty(companyUpload.getLeaseDueTime())&& StringUtil.isEmpty(companyUpload.getLegalPerson())
//                && StringUtil.isEmpty(companyUpload.getChargePerson())&& StringUtil.isEmpty(companyUpload.getInvestment())
//                && StringUtil.isEmpty(companyUpload.getProduct())&& StringUtil.isEmpty(companyUpload.getStaffCount())
//                && StringUtil.isEmpty(companyUpload.getAverageIncome())&& StringUtil.isEmpty(companyUpload.getInvestor())
//                && StringUtil.isEmpty(companyUpload.getIdNumber())&& StringUtil.isEmpty(companyUpload.getElectricityLoad())
//                && StringUtil.isEmpty(companyUpload.getSubstationNo())&& StringUtil.isEmpty(companyUpload.getAnnualWaterConsumption())
//                && StringUtil.isEmpty(companyUpload.getMonthlyWaterConsumption())&& StringUtil.isEmpty(companyUpload.getAnnualElectricityConsumption())
//                && StringUtil.isEmpty(companyUpload.getMonthlyElectricityConsumption())&& StringUtil.isEmpty(companyUpload.getStarGrade())
//                && StringUtil.isEmpty(companyUpload.getUnifiedSocialCreditCode())&& StringUtil.isEmpty(companyUpload.getTaxpayerIdentificationNumber())
//                && StringUtil.isEmpty(companyUpload.getBusinessRegistrationNumber())&& StringUtil.isEmpty(companyUpload.getOrganizationCode())) {
//            return true;
//        }
        if (StringUtil.isEmpty(companyUpload.getName()) || StringUtil.isEmpty(companyUpload.getStationTitle()) ||
        StringUtil.isEmpty(companyUpload.getBusinessRegistrationNumber()) || "-".equals(companyUpload.getBusinessRegistrationNumber())){
            return true;
        }
        return false;
    }
}
